package services

import models "vote.zozoo.net/internal/models/order"

// OrderService 定义订单服务接口[可选]
type OrderService interface {
	CreateOrder(o models.Order) (*models.Order, error)
	GetByOrderNo(orderNo string) (*models.Order, error)
	GetAllOrders(page, pageSize int) ([]models.Order, int, error)
	GetOrdersByUserID(userId string, page, pageSize int) ([]models.Order, int, error)
	UpdateOrder(o models.Order) (*models.Order, error)
	UpdateOrderStatus(orderNo, status string) (*models.Order, error)
	DeleteOrder(orderNo string) error
}
